drawNineSlice
Extension function to replicate the nine-slice functionality drawGuiTexture from 1.20.2+. Will brute force render the texture passed as a "standard" texture by adding the necessary identifier path information (such as the .png).
This method is surely not very efficient. It is designed to be a porting feature.
Author
fzzyhmstrs
Since
0.2.0
Parameters
Identifier - The sprite identifier (1.20.2+ style) for the image.
Int - the x location of the texture
Int - the y location of the texture
Int - the width of the drawn texture
Int - the height of the drawn texture
Extension function to replicate the nine-slice functionality drawGuiTexture from 1.20.2+.
in 1.20.2+ this is a compat method; maintained as-is to avoid needing to alter mod code elsewhere.
Author
fzzyhmstrs
Since
0.6.1
Parameters
Identifier - The sprite identifier (1.20.2+ style) for the image.
Int - the x location of the texture
Int - the y location of the texture
Int - the width of the drawn texture
Int - the height of the drawn texture
Int - the ARGB packed color int
Extension function to replicate the nine-slice functionality drawGuiTexture from 1.20.2+.
in 1.20.2+ this is a compat method; maintained as-is to avoid needing to alter mod code elsewhere.
Author
fzzyhmstrs
Since
0.6.1
Parameters
Identifier - The sprite identifier (1.20.2+ style) for the image.
Int - the x location of the texture
Int - the y location of the texture
Int - the width of the drawn texture
Int - the height of the drawn texture
Float - the texture transparency
Extension function to replicate the nine-slice functionality drawGuiTexture from 1.20.2+. Will brute force render the texture passed as a "standard" texture by adding the necessary identifier path information (such as the .png).
This method is surely not very efficient. It is designed to be a porting feature.
Author
fzzyhmstrs
Since
0.2.0
Parameters
Identifier - The sprite identifier (1.20.2+ style) for the image.
Int - the x location of the texture
Int - the y location of the texture
Int - the width of the drawn texture
Int - the height of the drawn texture
Int - the width in pixels of the left and right nine-slice borders
Int - the height in pixels of the top and bottom nine-slice borders
Int - the width of the png texture to be tiled
Int - the height of the png texture to be tiled